package com.hudson.admin.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "hudson-mq.name-srv")
@Component
public class NameSrvConfig {
    private String address;
    private int port;
    private int serializableMethod;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getSerializableMethod() {
        return serializableMethod;
    }

    public void setSerializableMethod(int serializableMethod) {
        this.serializableMethod = serializableMethod;
    }
}
